package com.matt.foundation.vo.nursery;

import lombok.Data;

import java.sql.Time;
import java.util.Date;

import javax.persistence.Column;

import com.matt.foundation.constant.CourseConstant;
import com.matt.foundation.vo.evaluate.Web.WebCompletedCourseListVo;

/**
 * *******************************\
 * 一日指导详情记录
 * Created by lch.
 * form com.matt
 * on 2018/11/26
 * *******************************
 */
@Data
public class InstructionRecordVo{

    private Time fromTime;

    private Time toTime;

    private int month;

    private int day;

    private String title;

    private String media;
    
    private int orderyMoney;
    
    public static InstructionRecordVo of(Object[] object) {
        //Integer courseType = object[4] == null ? 0 : Integer.valueOf(object[4].toString());
        InstructionRecordVo vo = new InstructionRecordVo();
       vo.setDay(Integer.parseInt(object[4].toString()));
       vo.setMonth(Integer.parseInt(object[3].toString()));
       vo.setFromTime((Time) object[1]);
       vo.setMedia(object[6].toString());
       vo.setTitle(object[5].toString());
       vo.setToTime((Time) object[2]);
       vo.setOrderyMoney(Integer.parseInt(object[0].toString()));
        return vo;
    }
}
